package com.glsc.ngateway.common.base.domain.mysql.flowable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

import javax.persistence.*;

/**
 * @Author: libj
 * @Date: 2021/10/28
 * @Desc: 部门信息表，数据采集自EHR
 */
@Entity
@Table(name = "t_flowable_ehr_deptinfo")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class FlowableEhrDeptinfo {

    @Id
    @Column(name = "depid")
    protected Integer depid;

    @Column(name = "dtitle", length = 100)
    protected String dtitle;

    @Column(name = "comptitle", length = 200)
    protected String comptitle;

    @Column(name = "adminid")
    protected Integer adminid;

    @Column(name = "atitle", length = 100)
    protected String atitle;

    @Column(name = "depgrade", length = 100)
    protected String depgrade;

    @Column(name = "leader", length = 100)
    protected String leader;

    @Column(name = "lname", length = 200)
    protected String lname;

    @Transient
    protected String leaderEmail;

    //仅展示统一接口时，增加department表示为部门名称
    public String getDepartment() {
        return dtitle;
    }

    public Integer getDepid() {
        return depid;
    }

    public void setDepid(Integer depid) {
        this.depid = depid;
    }

    public String getDtitle() {
        return dtitle;
    }

    public void setDtitle(String dtitle) {
        this.dtitle = dtitle;
    }

    public Integer getAdminid() {
        return adminid;
    }

    public void setAdminid(Integer adminid) {
        this.adminid = adminid;
    }

    public String getAtitle() {
        return atitle;
    }

    public void setAtitle(String atitle) {
        this.atitle = atitle;
    }

    public String getDepgrade() {
        return depgrade;
    }

    public void setDepgrade(String depgrade) {
        this.depgrade = depgrade;
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }

    public String getLname() {
        return lname;
    }

    public void setLname(String lname) {
        this.lname = lname;
    }

    public String getLeaderEmail() {
        return leaderEmail;
    }

    public void setLeaderEmail(String leaderEmail) {
        this.leaderEmail = leaderEmail;
    }

    public String getComptitle() {
        return comptitle;
    }

    public void setComptitle(String comptitle) {
        this.comptitle = comptitle;
    }
}
